#include "Server.hpp"

int main()
{
    Server server;
    server.OpenPipeForRead();

    std::string message;
    while (true)
    {
        if (server.RecvPipe(&message) > 0)
        {
            std::cout << "Client says#" << message << std::endl;
        }
        else
        {
            break;
        }
    }
    std::cout << "client have quited......" << std::endl;

    server.ClosePipe();

    return 0;
}